define(['common'], function(common){
    $.ajax({
        type: "GET",
        url: $('#last-version').data('url'),
        timeout: 4000,
        error:function(xhr, status){
            $('#last-version').html('升级接口连接失败');
        },
        success: function(result, status, xhr){
            if(result.code==1){
                $('#last-version').html(result.data.last);
                if(result.data.url){
                    $('#last-version').append('<a class="ms-1 text-danger" href="'+result.data.url+'" target="_blank">升级</a>');
                }
            }else{
                $('#last-version').html('升级接口出错了');
            }
        }
    });
    return true;
});